<template>
  <Modal v-model="visible" width="850" title="导出记录">
    <dt-grid ref="table" page :onFetch="onFetch" :height="500" />
    
    <div slot="footer" class="footer"></div>
  </Modal>
</template>

<script>
  import Column from '../opt/ExportColumn.js'
  import operationMgr from '@/biz/operationLog/operationLog.js'

  export default {
    data() {
      return {
        visible: false,
      }
    },
    methods: {
      onFetch(data) {
        data.logModule = 'M_1'
        data.logType = 'ORG_EXPORT'
        return operationMgr.logPage(data)
      },
      show() {
        this.visible = true
        this.$refs.table.init(this, new Column())
        this.$refs.table.fetch()
      },
      hide() {
        this.visible = false
      },
    },
  }
</script>

<style lang='scss' scoped>
</style>